﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using ESRI.ArcGIS.Geodatabase;

namespace BTGISWASECO.Data
{
    public static class FieldMapper
    {
        public static Hashtable GetMappings(IFields fields, List<string> fieldNames)
        {
            Hashtable mappings = new Hashtable();
            int c = fieldNames.Count;
            int i = 0;
            string s = null;
            int x = 0;
            while (i < c)
            {
                s = fieldNames[i];
                x = fields.FindField(s);
                mappings.Add(s, x);
                i++;
            }
            return mappings;
        }

    }
}
